﻿using System.Collections.Generic;
using System.Linq;

namespace Inscriptionem.Areas.Inscriptionem.Models.Views
{
    public class CommentCollectionViewModel
    {
        public IEnumerable<ORM.Comment> Comments { get; protected set; }

        public CommentCollectionViewModel()
        {
            Comments = new ORM.DB().Comments.Where(c => !c.IsPublished && !c.IsDeleted).OrderBy(c => c.ID);
        }

        public int Page { get; set; }
    }
}